{if $View == ""}
    {$Panelinfo}
    <ul>
    <li><a href="gwardzista.php?view=poradnik">Poradnik gwardzisty - OBOWIĄZKOWY!</a></li>
    <li><a href="gwardzista.php?view=czat">Zaknebluj</a></li>
    <li><a href="gwardzista.php?view=addtext">Sprawdź plotki</a></li>
    <li><a href="gwardzista.php?view=karczmaarchive">Archiwum karczmy</a></li>
    <li><a href="gwardzista.php?view=innarchive">Archiwum chatu</a></li>
    <li><a href="podanie.php">Podania</a></li>
    <li><a href="gwardzista.php?view=pocztarank">Wyslij wiadomosc do rangi</a></li>
    </ul>
{/if}

{if $View == "karczmaarchive"}
    {if $Text[0] != ""}
        {section name=player loop=$Text}
            <b>{$Author[player]} {$Cid}:{$Senderid[player]}</b>: {$Text[player]}<br />
        {/section}
    {/if}
    {$Previous} {$Next}
{/if}

{if $View == "innarchive"}
    {if $Text[0] != ""}
        {section name=player loop=$Text}
            <b>{$Author[player]} {$Cid}:{$Senderid[player]}</b>: {$Text[player]}<br />
        {/section}
    {/if}
    {$Previous} {$Next}
{/if}

{if $View == "jail"}
    <form method="post" action="gwardzista.php?view=jail&amp;step=add">
    {$Jailid}: <input type="text" name="prisoner" /><br />
    {$Jailreason}: <textarea name="verdict"></textarea><br />
    {$Jailtime}: <input type="text" name="time" /><br />
    {$Jailcost}: <input type="text" name="cost" /><br />
    <input type="submit" value="{$Aadd}" /></form>
{/if}

{if $View == "pocztarank"}
    <table>
    <form method="post" action="gwardzista.php?view=pocztarank&amp;step=send">
    <tr><td>Do rangi:</td><td><select name="rank">
    <option value="Admin">Admin</option>
    <option value="Gwardzista">Gwardzista</option>
    <option value="Kapitan Gwardii">Kapitan Gwardii</option>
    </select></td></tr>
    <tr><td>Temat:</td><td><input type="text" name="subject" /></td></tr>
    <tr><td valign="top">Tresc:</td><td><textarea name="body" rows="5" cols="19"></textarea></td></tr>
    <tr><td colspan="2" align="center"><input type="submit" value="Wyslij" /></td></tr>
    </form></table>
{/if}

{if $View == "czat"}
    {$Tlist}<br />
    {section name=staff loop=$Chatid}
        {$Tid}: {$Chatid[staff]}
    {/section}
    <form method="post" action="gwardzista.php?view=czat&amp;step=czat">
    <select name="czat">
    <option value="blok">{$Ablock}</option>
    <option value="odblok">{$Aunblock}</option></select>
    {$Tid} <input type="text" name="czat_id" size="5" /> {$Ona} <input type="text" size="5" name="duration" value="1" />{$Tdays}<br />
    <textarea name="verdict"></textarea><br />
     <input type="submit" value="{$Amake}" />
    </form>
{/if}

{if $View == "addtext"}
    {$Admininfo}<br />
    {$Admininfo2}<br />
    {$Admininfo3}<br />
    {$Admininfo4}<br /><br />
    {$Admininfo5}:
    <table width="100%">
        {section name=staff2 loop=$Ttitle}
            <tr>
                <td>{$Ttitle[staff2]} ({$Tauthor2}: {$Tauthor[staff2]})</td>
                <td><a href="gwardzista.php?view=addtext&amp;action=modify&amp;text={$Tid[staff2]}">{$Amodify}</a></td>
                <td><a href="gwardzista.php?view=addtext&amp;action=add&amp;text={$Tid[staff2]}">{$Aadd}</a></td>
                <td><a href="gwardzista.php?view=addtext&amp;action=delete&amp;text={$Tid[staff2]}">{$Adelete}</a></td>
            </tr>
        {/section}
    </table>
{/if}

{if $Action == "modify"}
<form method="post" action="gwardzista.php?view=addtext&amp;action=modify&amp;text={$Tid}">
    {$Ttitle2}: <input type="text" name="ttitle" value="{$Ttitle}" /><br />
    {$Tbody2}: <br /><textarea name="body" rows="30" cols="60">{$Tbody}</textarea><br />
    <input type="hidden" name="tid" value="{$Tid}" />
    <input type="submit" value="{$Achange}" />
</form>
{/if}
